﻿using System.Xml.Serialization;
using ElectronicCommerce.Framework.Configuration.Attributes;

namespace ElectronicCommerce.Framework.Configuration.Entities
{
    /// <summary>
    /// Ex Manager Config
    /// </summary>
    [ConfigFile("ExceptionConfig.config")]
    [XmlRoot("ExManager")]
    public class ExManagerConfig
    {
        [XmlAttribute("ErrorCodeSource")]
        public string ErrorCodeSource { get; set; }

        [XmlAttribute("ConnectionString")]
        public string ConnectionString { get; set; }

        [XmlAttribute("DataTable")]
        public string DataTable { get; set; }

        [XmlElement("ExHandler")]
        public ExHandlerCollection ExHandlerList { get; set; }
    }
}
